﻿namespace Admin.NET.Core.Btms;

[SugarTable("InvKuCun", "库存表")]
public class InvKuCun : EntityBase, ITenantIdFilter
{

    [SugarColumn(ColumnDescription = "租户Id")]
    public long? TenantId { get; set; }


    [SugarColumn(ColumnDescription = "献血码", Length = 128)]
    public string xianXueMa { get; set; } = "";


    [SugarColumn(ColumnDescription = "产品码(产品Id)", Length = 128)]
    public string chanPinId { get; set; } = "";


    [SugarColumn(ColumnDescription = "血液名称（统一取产品名）", Length = 128)]
    public string mingCheng { get; set; } = "";


    [SugarColumn(ColumnDescription = "品种Id")]
    public long pinZhongId { get; set; }


    [SugarColumn(ColumnDescription = "大类", Length = 128)]
    public string daLei { get; set; } = "";


    [SugarColumn(ColumnDescription = "院区Id")]
    public long yuanQuId { get; set; }


    [SugarColumn(ColumnDescription = "ABO", Length = 50)]
    public string abo { get; set; } = "";


    [SugarColumn(ColumnDescription = "RhD", Length = 50)]
    public string rhD { get; set; } = "";


    [SugarColumn(ColumnDescription = "容量", Length = 16, DecimalDigits = 2)]
    public decimal rongLiang { get; set; }

    [SugarColumn(ColumnDescription = "单位", Length = 50)]
    public string? danWei { get; set; }

    [SugarColumn(ColumnDescription = "价格", Length = 16, DecimalDigits = 2)]
    public decimal? jiaGe { get; set; }


    [SugarColumn(ColumnDescription = "库存状态", Length = 50)]
    public string kuCunZhuangTai { get; set; } = "";

    [SugarColumn(ColumnDescription = "特殊处理", Length = 250)]
    public string? teShuChuLi { get; set; }


    [SugarColumn(ColumnDescription = "失效时间")]
    public DateTime shiXiaoShiJian { get; set; }

    [SugarColumn(ColumnDescription = "采血时间")]
    public DateTime? caiXueShiJian { get; set; }

    [SugarColumn(ColumnDescription = "制备时间")]
    public DateTime? zhiBeiShiJian { get; set; }

    [SugarColumn(ColumnDescription = "回收状态", Length = 50)]
    public string? huiShouZhuangTai { get; set; }

    [SugarColumn(ColumnDescription = "来源Id")]
    public long? laiYuanId { get; set; }

    [SugarColumn(ColumnDescription = "血袋外观", Length = 250)]
    public string? xueDaiWaiGuan { get; set; }

    [SugarColumn(ColumnDescription = "自编号", Length = 128)]
    public string? ziBianHao { get; set; }

    [SugarColumn(ColumnDescription = "复核ABO", Length = 50)]
    public string? fuHeABO { get; set; }

    [SugarColumn(ColumnDescription = "复核RhD", Length = 50)]
    public string? fuHeRhD { get; set; }

    [SugarColumn(ColumnDescription = "Rh分型", Length = 50)]
    public string? rhFenXing { get; set; }


    [SugarColumn(ColumnDescription = "入库时间")]
    public DateTime ruKuShiJian { get; set; }


    [SugarColumn(ColumnDescription = "", Length = 512)]
    public string remark { get; set; } = "";

}
